<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>我的首页</title>
</head>
<body>
<h1>我的首页哦</h1>
<!--<div shiro:hasPermission="2">-->
<a href="/gas/facility/add">添加设备</a><br />
<!--</div>-->

<a href="/gas/toLogin" style="color: cornflowerblue" >登录</a>
<a th:href="@{/gas/logout}">退出</a>
<script>

    alert("登陆成功");

</script>
</body>
</html>